package GUItest;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class TransferScreen extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TransferScreen frame = new TransferScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TransferScreen() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnNewButton = new JButton("Back");
		btnNewButton.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent e) {
				main_Screen main = new main_Screen();
				main.setVisible(true);
			}
		});
		btnNewButton.setBounds(6, 6, 117, 29);
		contentPane.add(btnNewButton);
		
		JLabel lblNewLabel = new JLabel("Transfer Funds");
		lblNewLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 18));
		lblNewLabel.setBounds(145, 22, 154, 41);
		contentPane.add(lblNewLabel);
		
		JLabel lblFromAccount = new JLabel("From Account:");
		lblFromAccount.setBounds(25, 88, 98, 16);
		contentPane.add(lblFromAccount);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(155, 84, 52, 27);
		contentPane.add(comboBox);
		
		JLabel lblToAccount = new JLabel("To Account:");
		lblToAccount.setBounds(272, 88, 80, 16);
		contentPane.add(lblToAccount);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(364, 84, 52, 27);
		contentPane.add(comboBox_1);
		
		JLabel lblAmmount = new JLabel("Amount:");
		lblAmmount.setBounds(122, 144, 63, 16);
		contentPane.add(lblAmmount);
		
		textField = new JTextField();
		textField.setBounds(188, 138, 134, 28);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblMemo = new JLabel("Memo: ");
		lblMemo.setBounds(132, 172, 53, 16);
		contentPane.add(lblMemo);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(188, 166, 134, 28);
		contentPane.add(textField_1);
		
		JButton btnTransfer = new JButton("Transfer");
		btnTransfer.setBounds(182, 224, 117, 29);
		contentPane.add(btnTransfer);
	}
}
